﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Entity;
using Tango.Domain;

namespace Tango.Infrastructure.EntityFramework
{
    public interface IDatabase : IUnitOfWork
    {
        DbSet<Entry> Entries { get; set; }

        void InsertOnSubmit<T>(T entity)
            where T : class;
        void InsertAllOnSubmit<T>(IEnumerable<T> entities)
            where T : class;
        void DeleteOnSubmit<T>(T entity)
            where T : class;
        void DeleteOnSubmit<T>(IEnumerable<T> entities)
            where T : class;
    }
}
